<?php
/*
 * OffLineAddWithDrawForm definition
 * @author li.junfu
 */

require_once BaseUtil::getModulePath("base")  .  '/forms/BaseForm.php';
require_once BaseUtil::getModulePath("trade")  . '/constants/TradeConstant.php';

class SureWithDrawLineForm extends BaseForm {

        public function __construct(){

            parent::__construct();
            $this->setAction(HttpUtil::getUrl("withdraw", "surewithdraw"));

            //sn
            $trade_num = new Zend_Form_Element_Text('trade_num');
            $trade_num->addFilter("StringTrim");
            $trade_num->setRequired(true);

            //out_id
            $out_id = new Zend_Form_Element_Text('out_id');
            $out_id->addFilter("StringTrim");

            //pay_time
            $pay_time = new Zend_Form_Element_Text('pay_time');
            $pay_time->addFilter("StringTrim");
            $pay_time->setRequired(true);
            //pay_h
            $pay_h = new Zend_Form_Element_Select('pay_h');
            $pay_h->setMultiOptions(TradeConstant::getHourList());
            $pay_h->addFilter("StringTrim");

            //$pay_m
            $pay_m = new Zend_Form_Element_Select('pay_m');
            $pay_m->setMultiOptions(TradeConstant::getMinuteList());
            $pay_m->addFilter("StringTrim");

            $this->addElements(array($trade_num,$out_id,$pay_time,$pay_h,$pay_m));
            $this->setElementDecorators(array('ViewHelper',array(array('div'=>'HtmlTag'),array('tag'=>'div','class'=>'form_element'))));
        }
}
?>
